<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableArtExts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('art_exts', function (Blueprint $table) {
            $table->increments('art_ext_id')->comment('文章详情主键');
            $table->integer('art_id')->default(0)->comment('关联文章表主键');
            $table->text('art_content')->default('')->comment('文章内容');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('art_exts');
    }
}
